Page({
  data: {},
  waitOpen() {
    wx.showToast({
      icon: 'none',
      title: "'谁是卧底在线发牌器'即将开放，敬请期待！",
      duraion: 3000
    })
  },
  getUserInfo(e) {
    if (e.detail.errMsg === 'getUserInfo:ok') {
      let nickName = e.detail.userInfo.nickName
      wx.setStorageSync('nickName', nickName)
      wx.setStorageSync('userInfo', e.detail.userInfo)
      wx.navigateTo({url: '/pages/undercover/undercover'})
    }
  },
  onShareAppMessage() {
    return {
      title: '聚会娱乐必备神器，各类互动游戏出题器！',
      path: '/pages/home/home'
    }
  }
})